package com.gdwstudy.overrideExer;

public class Student extends Person {
    //属性
    private int id;
    private double score;

    //构造器
    public Student(String name, int age, int id, double score) {
        super(name, age);
        this.id = id;
        this.score = score;
    }

    public Student(int id, double score) {
        this.id = id;
        this.score = score;
    }

    //方法
    public String say(){
        return super.say()+" 学号 "+id+" 成绩 "+score;
    }
}
